package qldc.pm.tienan.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import qldc.pm.tienan.model.LichAnXoaAnTich;

import java.util.List;

/**
 * The persistence utility for the lich an xoa an tich service. This utility wraps {@link LichAnXoaAnTichPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see LichAnXoaAnTichPersistence
 * @see LichAnXoaAnTichPersistenceImpl
 * @generated
 */
public class LichAnXoaAnTichUtil {
    private static LichAnXoaAnTichPersistence _persistence;

    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
     */

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
     */
    public static void clearCache() {
        getPersistence().clearCache();
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
     */
    public static void clearCache(LichAnXoaAnTich lichAnXoaAnTich) {
        getPersistence().clearCache(lichAnXoaAnTich);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
     */
    public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
        throws SystemException {
        return getPersistence().countWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
     */
    public static List<LichAnXoaAnTich> findWithDynamicQuery(
        DynamicQuery dynamicQuery) throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
     */
    public static List<LichAnXoaAnTich> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end)
        throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
     */
    public static List<LichAnXoaAnTich> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end,
        OrderByComparator orderByComparator) throws SystemException {
        return getPersistence()
                   .findWithDynamicQuery(dynamicQuery, start, end,
            orderByComparator);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
     */
    public static LichAnXoaAnTich update(LichAnXoaAnTich lichAnXoaAnTich)
        throws SystemException {
        return getPersistence().update(lichAnXoaAnTich);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
     */
    public static LichAnXoaAnTich update(LichAnXoaAnTich lichAnXoaAnTich,
        ServiceContext serviceContext) throws SystemException {
        return getPersistence().update(lichAnXoaAnTich, serviceContext);
    }

    /**
    * Returns the lich an xoa an tich where tienAnId = &#63; or throws a {@link qldc.pm.tienan.NoSuchLichAnXoaAnTichException} if it could not be found.
    *
    * @param tienAnId the tien an ID
    * @return the matching lich an xoa an tich
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich findByTienAnId(
        long tienAnId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence().findByTienAnId(tienAnId);
    }

    /**
    * Returns the lich an xoa an tich where tienAnId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
    *
    * @param tienAnId the tien an ID
    * @return the matching lich an xoa an tich, or <code>null</code> if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich fetchByTienAnId(
        long tienAnId)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByTienAnId(tienAnId);
    }

    /**
    * Returns the lich an xoa an tich where tienAnId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
    *
    * @param tienAnId the tien an ID
    * @param retrieveFromCache whether to use the finder cache
    * @return the matching lich an xoa an tich, or <code>null</code> if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich fetchByTienAnId(
        long tienAnId, boolean retrieveFromCache)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByTienAnId(tienAnId, retrieveFromCache);
    }

    /**
    * Removes the lich an xoa an tich where tienAnId = &#63; from the database.
    *
    * @param tienAnId the tien an ID
    * @return the lich an xoa an tich that was removed
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich removeByTienAnId(
        long tienAnId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence().removeByTienAnId(tienAnId);
    }

    /**
    * Returns the number of lich an xoa an tichs where tienAnId = &#63;.
    *
    * @param tienAnId the tien an ID
    * @return the number of matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static int countByTienAnId(long tienAnId)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countByTienAnId(tienAnId);
    }

    /**
    * Returns all the lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @return the matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich);
    }

    /**
    * Returns a range of all the lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.LichAnXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param start the lower bound of the range of lich an xoa an tichs
    * @param end the upper bound of the range of lich an xoa an tichs (not inclusive)
    * @return the range of matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, start, end);
    }

    /**
    * Returns an ordered range of all the lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.LichAnXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param start the lower bound of the range of lich an xoa an tichs
    * @param end the upper bound of the range of lich an xoa an tichs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, start, end, orderByComparator);
    }

    /**
    * Returns the first lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching lich an xoa an tich
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich findByHoTen_MaSoHoSo_NgayLapHoSo_First(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo_First(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, orderByComparator);
    }

    /**
    * Returns the first lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching lich an xoa an tich, or <code>null</code> if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich fetchByHoTen_MaSoHoSo_NgayLapHoSo_First(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByHoTen_MaSoHoSo_NgayLapHoSo_First(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, orderByComparator);
    }

    /**
    * Returns the last lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching lich an xoa an tich
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich findByHoTen_MaSoHoSo_NgayLapHoSo_Last(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo_Last(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, orderByComparator);
    }

    /**
    * Returns the last lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching lich an xoa an tich, or <code>null</code> if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich fetchByHoTen_MaSoHoSo_NgayLapHoSo_Last(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByHoTen_MaSoHoSo_NgayLapHoSo_Last(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich, orderByComparator);
    }

    /**
    * Returns the lich an xoa an tichs before and after the current lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param lichAnXoaAnTichId the primary key of the current lich an xoa an tich
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next lich an xoa an tich
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a lich an xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich[] findByHoTen_MaSoHoSo_NgayLapHoSo_PrevAndNext(
        long lichAnXoaAnTichId, java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_NgayLapHoSo_PrevAndNext(lichAnXoaAnTichId,
            hoVaTenDoiTuongTienAn, maHoSoXoaAnTich, ngayYeuCauXoaAnTich,
            orderByComparator);
    }

    /**
    * Removes all the lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63; from the database.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @throws SystemException if a system exception occurred
    */
    public static void removeByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence()
            .removeByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich);
    }

    /**
    * Returns the number of lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; and ngayYeuCauXoaAnTich = &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param ngayYeuCauXoaAnTich the ngay yeu cau xoa an tich
    * @return the number of matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static int countByHoTen_MaSoHoSo_NgayLapHoSo(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, java.util.Date ngayYeuCauXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countByHoTen_MaSoHoSo_NgayLapHoSo(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, ngayYeuCauXoaAnTich);
    }

    /**
    * Returns all the lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @return the matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienAn, java.lang.String maHoSoXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo(hoVaTenDoiTuongTienAn, maHoSoXoaAnTich);
    }

    /**
    * Returns a range of all the lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.LichAnXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param start the lower bound of the range of lich an xoa an tichs
    * @param end the upper bound of the range of lich an xoa an tichs (not inclusive)
    * @return the range of matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, start, end);
    }

    /**
    * Returns an ordered range of all the lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.LichAnXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param start the lower bound of the range of lich an xoa an tichs
    * @param end the upper bound of the range of lich an xoa an tichs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, start, end, orderByComparator);
    }

    /**
    * Returns the first lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching lich an xoa an tich
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich findByHoTen_MaSoHoSo_First(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_First(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Returns the first lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching lich an xoa an tich, or <code>null</code> if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich fetchByHoTen_MaSoHoSo_First(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByHoTen_MaSoHoSo_First(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Returns the last lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching lich an xoa an tich
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich findByHoTen_MaSoHoSo_Last(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_Last(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Returns the last lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching lich an xoa an tich, or <code>null</code> if a matching lich an xoa an tich could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich fetchByHoTen_MaSoHoSo_Last(
        java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByHoTen_MaSoHoSo_Last(hoVaTenDoiTuongTienAn,
            maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Returns the lich an xoa an tichs before and after the current lich an xoa an tich in the ordered set where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param lichAnXoaAnTichId the primary key of the current lich an xoa an tich
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next lich an xoa an tich
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a lich an xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich[] findByHoTen_MaSoHoSo_PrevAndNext(
        long lichAnXoaAnTichId, java.lang.String hoVaTenDoiTuongTienAn,
        java.lang.String maHoSoXoaAnTich,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence()
                   .findByHoTen_MaSoHoSo_PrevAndNext(lichAnXoaAnTichId,
            hoVaTenDoiTuongTienAn, maHoSoXoaAnTich, orderByComparator);
    }

    /**
    * Removes all the lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63; from the database.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @throws SystemException if a system exception occurred
    */
    public static void removeByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienAn, java.lang.String maHoSoXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence()
            .removeByHoTen_MaSoHoSo(hoVaTenDoiTuongTienAn, maHoSoXoaAnTich);
    }

    /**
    * Returns the number of lich an xoa an tichs where hoVaTenDoiTuongTienAn LIKE &#63; and maHoSoXoaAnTich LIKE &#63;.
    *
    * @param hoVaTenDoiTuongTienAn the ho va ten doi tuong tien an
    * @param maHoSoXoaAnTich the ma ho so xoa an tich
    * @return the number of matching lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static int countByHoTen_MaSoHoSo(
        java.lang.String hoVaTenDoiTuongTienAn, java.lang.String maHoSoXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countByHoTen_MaSoHoSo(hoVaTenDoiTuongTienAn, maHoSoXoaAnTich);
    }

    /**
    * Caches the lich an xoa an tich in the entity cache if it is enabled.
    *
    * @param lichAnXoaAnTich the lich an xoa an tich
    */
    public static void cacheResult(
        qldc.pm.tienan.model.LichAnXoaAnTich lichAnXoaAnTich) {
        getPersistence().cacheResult(lichAnXoaAnTich);
    }

    /**
    * Caches the lich an xoa an tichs in the entity cache if it is enabled.
    *
    * @param lichAnXoaAnTichs the lich an xoa an tichs
    */
    public static void cacheResult(
        java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> lichAnXoaAnTichs) {
        getPersistence().cacheResult(lichAnXoaAnTichs);
    }

    /**
    * Creates a new lich an xoa an tich with the primary key. Does not add the lich an xoa an tich to the database.
    *
    * @param lichAnXoaAnTichId the primary key for the new lich an xoa an tich
    * @return the new lich an xoa an tich
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich create(
        long lichAnXoaAnTichId) {
        return getPersistence().create(lichAnXoaAnTichId);
    }

    /**
    * Removes the lich an xoa an tich with the primary key from the database. Also notifies the appropriate model listeners.
    *
    * @param lichAnXoaAnTichId the primary key of the lich an xoa an tich
    * @return the lich an xoa an tich that was removed
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a lich an xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich remove(
        long lichAnXoaAnTichId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence().remove(lichAnXoaAnTichId);
    }

    public static qldc.pm.tienan.model.LichAnXoaAnTich updateImpl(
        qldc.pm.tienan.model.LichAnXoaAnTich lichAnXoaAnTich)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().updateImpl(lichAnXoaAnTich);
    }

    /**
    * Returns the lich an xoa an tich with the primary key or throws a {@link qldc.pm.tienan.NoSuchLichAnXoaAnTichException} if it could not be found.
    *
    * @param lichAnXoaAnTichId the primary key of the lich an xoa an tich
    * @return the lich an xoa an tich
    * @throws qldc.pm.tienan.NoSuchLichAnXoaAnTichException if a lich an xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich findByPrimaryKey(
        long lichAnXoaAnTichId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchLichAnXoaAnTichException {
        return getPersistence().findByPrimaryKey(lichAnXoaAnTichId);
    }

    /**
    * Returns the lich an xoa an tich with the primary key or returns <code>null</code> if it could not be found.
    *
    * @param lichAnXoaAnTichId the primary key of the lich an xoa an tich
    * @return the lich an xoa an tich, or <code>null</code> if a lich an xoa an tich with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.LichAnXoaAnTich fetchByPrimaryKey(
        long lichAnXoaAnTichId)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByPrimaryKey(lichAnXoaAnTichId);
    }

    /**
    * Returns all the lich an xoa an tichs.
    *
    * @return the lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll();
    }

    /**
    * Returns a range of all the lich an xoa an tichs.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.LichAnXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of lich an xoa an tichs
    * @param end the upper bound of the range of lich an xoa an tichs (not inclusive)
    * @return the range of lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end);
    }

    /**
    * Returns an ordered range of all the lich an xoa an tichs.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.LichAnXoaAnTichModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of lich an xoa an tichs
    * @param end the upper bound of the range of lich an xoa an tichs (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.LichAnXoaAnTich> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end, orderByComparator);
    }

    /**
    * Removes all the lich an xoa an tichs from the database.
    *
    * @throws SystemException if a system exception occurred
    */
    public static void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeAll();
    }

    /**
    * Returns the number of lich an xoa an tichs.
    *
    * @return the number of lich an xoa an tichs
    * @throws SystemException if a system exception occurred
    */
    public static int countAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countAll();
    }

    public static LichAnXoaAnTichPersistence getPersistence() {
        if (_persistence == null) {
            _persistence = (LichAnXoaAnTichPersistence) PortletBeanLocatorUtil.locate(qldc.pm.tienan.service.ClpSerializer.getServletContextName(),
                    LichAnXoaAnTichPersistence.class.getName());

            ReferenceRegistry.registerReference(LichAnXoaAnTichUtil.class,
                "_persistence");
        }

        return _persistence;
    }

    /**
     * @deprecated As of 6.2.0
     */
    public void setPersistence(LichAnXoaAnTichPersistence persistence) {
    }
}
